<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<div class="hdr">
	<div class="top"><div class="left"><div class="right"><div class="center">
	</div></div></div></div>
	
	<div class="middle"><div class="left"><div class="right"><div class="center">
		<ul class="region">
			<li class="rLeft">
				<div class="logoDiv" onclick="actionOnLogo()"><img class="logoImg" src="<s:url value="/images/logo.jpg" />" /></div>
			</li>
			<li class="rCenter">
				<div class="appName"><s:text name="common.app.name"/></div>
			</li>
			<li class="rRight">
				<s:if test="#session.SPRING_SECURITY_CONTEXT!=null">
				
					<div class="trm">
						<div class="top">
							<ul>
								<li>
									<div style="padding: 3px 7px"><s:text name="common.language"></s:text></div>
								</li>
								<li>
									<s:set name="SESSION_LOCALE" value="#session['WW_TRANS_I18N_LOCALE']"/>
									 
									<form id="langForm" action="<s:url/>" method="post">
										<s:select name="request_locale" list="#{'zh_CN':'中文','en_US':'English'}" 
										          listKey="key" listValue="value" value="#SESSION_LOCALE==null?locale:#SESSION_LOCALE" 
										          onchange="$('#langForm').submit();" >
										 </s:select>
									</form>
								</li>
								<li class="sep sep4">|</li>
								<li>
									<div style="padding: 3px 7px"><s:text name="common.role"/></div>
								</li>
								<li>
									<form id="roleForm" action="<s:url value="/home/home!changeRole.action"/>" method="post">
										<s:select name="roleCode" list="#session.SPRING_SECURITY_CONTEXT.authentication.principal.roleList" 
												  value="#session.roleCode" 
												  onchange="$('#roleForm').submit();" ></s:select>
									</form>
								</li>
								<li class="sep sep4">|</li>
								<li><a href="<s:url value="/home/home.action"/>"><s:text name="common.home"/></a></li>
								<li class="sep sep4">|</li>
								<li><a href="<s:url value="/j_spring_security_logout"/>"><s:text name="common.logout"/></a></li>
							</ul>
						</div>
						<div class="middle"></div>
					<div class="bottom"></div>
					
				</s:if>
			</li>
		</ul>
	  </div></div></div></div>
	
	<div class="bottom"><div class="left"><div class="right"><div class="center">
	</div></div></div></div>
</div>